package cn.tedu.tmall.front.mall.service;

import cn.tedu.tmall.common.pojo.po.CurrentUser;
import cn.tedu.tmall.common.pojo.vo.PageData;
import cn.tedu.tmall.front.mall.pojo.param.OrderCreateParam;
import cn.tedu.tmall.front.mall.pojo.vo.OrderVO;
import org.springframework.transaction.annotation.Transactional;

public interface IOrderService {

    @Transactional
    void createOrder(CurrentUser user, OrderCreateParam orderCreateParam);

    PageData<OrderVO> list(CurrentUser user, Integer pageNum, Integer pageSize);

}
